package com.hsh.member.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author
 * @date2022/12/1 14:36
 * 会员信息表对应实体类
 */
@Data
@Accessors(chain = true)
@TableName("tb_member")
public class Member implements Serializable {
  @TableId(value="id",type =IdType.AUTO)
  private Integer id;

  //会员卡号
  private String cardNum;

  //会员名字
  private String name;

  //生日
  private Date birthday;

  //手机号
  private String phone;

  //可用积分
  private Integer integral;

  //可用金额
  private  Double money;

  //支付类型（'1'现金, '2'微信, '3'支付宝, '4'银行卡）
  private String payType;

  //会员地址
  private String address;
}
